package cn.dakaqi.pingan.entities;

import java.io.Serializable;

/**
 * Created by chunyang on 2016/1/28.
 */
public class PingAnUser implements Serializable
{

    public static final String REG_STATE_FAILURE = "99";
    public static final String REG_STATE_SUCCESS = "00";

    public static final String REG_ISNEW_NO = "0";
    public static final String REG_ISNEW_YES = "1";

    private static final long serialVersionUID = -6373690489406193522L;
    private String errorMessage;
    private String errorCode;
    private String state;   //00 成功 99失败
    private String isNew;      //0 已存在 1新开户
    private String returnUrl;
    private String cardNo;

    public PingAnUser(String errorMessage, String errorCode, String state, String isNew, String returnUrl, String cardNo)
    {
        this.errorMessage = errorMessage;
        this.errorCode = errorCode;
        this.state = state;
        this.isNew = isNew;
        this.returnUrl = returnUrl;
        this.cardNo = cardNo;
    }

    public PingAnUser()
    {
    }

    public String getErrorMessage()
    {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage)
    {
        this.errorMessage = errorMessage;
    }

    public String getErrorCode()
    {
        return errorCode;
    }

    public void setErrorCode(String errorCode)
    {
        this.errorCode = errorCode;
    }

    public String getState()
    {
        return state;
    }

    public void setState(String state)
    {
        this.state = state;
    }

    public String getIsNew()
    {
        return isNew;
    }

    public void setIsNew(String isNew)
    {
        this.isNew = isNew;
    }

    public String getReturnUrl()
    {
        return returnUrl;
    }

    public void setReturnUrl(String returnUrl)
    {
        this.returnUrl = returnUrl;
    }

    public String getCardNo()
    {
        return cardNo;
    }

    public void setCardNo(String cardNo)
    {
        this.cardNo = cardNo;
    }

    @Override
    public String toString()
    {
        return "PingAnUser{" +
                "errorMessage='" + errorMessage + '\'' +
                ", errorCode='" + errorCode + '\'' +
                ", state='" + state + '\'' +
                ", isNew=" + isNew +
                ", returnUrl='" + returnUrl + '\'' +
                ", cardNo='" + cardNo + '\'' +
                '}';
    }
}
